<?php
declare (strict_types = 1);

namespace app\common\model;

class Packet extends Base
{

    protected $name = 'packet';

    public function getSytoalAttr($value,$data)
    {
        $value =round(($data['price'] + $data['yield']*$data['price']*$data['gold']),0).'金币+'.round(($data['yield']*$data['price']*$data['integral']),0).'积分';
        return $value;
    }
    public function getSyAttr($value,$data)
    {
        return ($data['yield'] * 100);
    }
}